package com.liuxinlong.jobs;

import com.liuxinlong.modules.system.service.MessageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 使用quartz框架
 */
@Service
@Slf4j
@Component("messagePushTask")
public class MessagePushTask {

    @Autowired
    private MessageService messageService;

    /**
     * 业务逻辑
     */
    public void reptilian(){
        log.info("messagePushJob start...");
        messageService.delayedSendingMessage();
        log.info("messagePushJob end...");
    }
}

